@charset "UTF-8";
body {
  font-size: 15px;
  background-color: #ccc;
  margin: 40px;
}

.container {
  position: relative;
  width: 400px;
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
}

.content {
  padding: 30px;
  height: 500px;
  background-color: #fff;
  font-size: 1.2rem;
  line-height: 1.5rem;
  color: #333;
}

p {margin: 0 0 30px;}

#readmore {display: none;}

#readmore + label {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 250px;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 70%);
  pointer-events: none;
}

#readmore + label::after {
  content: "阅读更多捏~";
  display: inline-block;
  position: absolute;
  bottom: 20px;
  left: 50%;
  background-color: #333;
  font-size: 1.1rem;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
}

#readmore + label:hover::after {background-color: #000;}

#readmore:checked ~ .content {height: auto;}

#readmore:checked + label {display: none;}
